package com.yycx.module.vip.provider.service.impl;

import com.yycx.common.mybatis.base.service.impl.BaseServiceImpl;
import com.yycx.common.base.entity.EntityMap;
import com.yycx.common.mybatis.model.ResultBody;
import com.yycx.common.mybatis.query.CriteriaQuery;
import com.yycx.module.vip.client.entity.VipType;
import com.yycx.module.vip.provider.mapper.VipTypeMapper;
import com.yycx.module.vip.provider.service.VipTypeService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * vip表 实现类
 *
 * @author flyme
 * @date 2019-06-24
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class VipTypeServiceImpl extends BaseServiceImpl<VipTypeMapper, VipType> implements VipTypeService {




    @Override
    public ResultBody beforeListEntityMap(CriteriaQuery<VipType> cq, VipType vipType, EntityMap requestMap) {
        cq.select("type.vipTypeId", "type.vipName", "type.prePrice", "type.oriPrice", "type.vipLogo");
        return super.beforeListEntityMap(cq, vipType, requestMap);
    }
}
